package com.example.Builder3;

/**
 * 建造者模式
 * 软考-软件设计师，2017上半年，下午编程题真题
 */
public class AppTest {
    public static void main(String[] args) {
        Waiter waiter = new Waiter();
        PizzaBuilder hawaiian_pizzabuilder = new HawaiianPizzaBuilder();
        waiter.setPizzaBuilder(hawaiian_pizzabuilder);
        waiter.construct();

        System.out.println("pizza: " + waiter.getPizza());
        // pizza: cross + mild + ham&pineapp1e
    }
}
